xl: ensure handle_domain & preserve_domain update the global domid not a shadow
authorIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jul 2012 10:40:45 +0000 (11:40 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jul 2012 10:40:45 +0000 (11:40 +0100)
commit817dbc6f30c6fe3b2b04ed862c2e92273e2a3bc3
treec499e6d2e380c0bb378177b7f6a746b8389142a9
parent3a527ed44808ffe2b7718e694e7c0ebf7a1c95a1
xl: ensure handle_domain & preserve_domain update the global domid not a shadow

xl keeps the current domid in a global variable, however it also has various
functions (including the two above) which take a domid parameter which shadows
this.

This fixes the issue introduced by 25563:dbf54d93ac40 "xl: initialise domid to
an explicitly invalid value" but does not tackle the wider problem.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c